home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / getpid.c < prev    next >
C/C++ Source or Header  |  1993-02-22  |  267b  |  10 lines

  1. #include <osbind.h>
  2. #include <unistd.h>
  3. #include <basepage.h>
  4. #include <mintbind.h>
  5.  
  6. extern int __mint;
  7.  
  8. int getpid() { return __mint ? Pgetpid() : (int) ( ((long)_base) >> 8 ); }
  9. int getppid() { return __mint ? Pgetppid() : (int) (((long)(_base->p_parent)) >> 8); }
  10.